Result validationResult = validate( cur, newName );
if( validationResult != null ) {
return validationResult;
}
if( cur instanceof MakeCollectionableResource ) {
MakeCollectionableResource mcr = (MakeCollectionableResource) cur;
CollectionResource newCol;
try {
newCol = doCreate( mcr, newName );
} catch( BadRequestException ex) {
log.debug( "ex", ex );