*/
public static Object[] collectionToArray(ObjectContainerBase stream, Object obj){
Collection4 col = flattenCollection(stream, obj);
Object[] ret = new Object[col.size()];
col.toArray(ret);
return ret;
}
static final Collection4 flattenCollection(ObjectContainerBase stream, Object obj) {
Collection4 col = new Collection4();