CollectionResource col;
col = getParent();
if( col == null ) {
throw new IOException( "parent not found" );
} else if( col instanceof PutableResource ) {
final PutableResource putableResource = (PutableResource) col;
final String newName = path.getName();
Runnable runnable = new Runnable() {
public void run() {
try {
putableResource.createNew( newName, out.getInputStream(), out.getSize(), null );
} catch( BadRequestException ex ) {
throw new RuntimeException( ex );
} catch( NotAuthorizedException ex ) {
throw new RuntimeException( ex );
} catch( ConflictException ex ) {