target = (CollectionResource) wrappedResource.child( "uploads" );
if( target == null ) {
try {
if( wrappedResource instanceof MakeCollectionableResource ) {
MakeCollectionableResource mk = (MakeCollectionableResource) wrappedResource;
target = mk.createCollection( "uploads" );
} else {
throw new BadRequestException( target, "Cant create subfolder" );
}
} catch( ConflictException ex ) {
throw new RuntimeException( ex );