((RestrictableSource)source).setSourceCredential(new SourceCredential(principal, password));
if (source instanceof ModifiableTraversableSource) {
ModifiableTraversableSource modifiabletraversablesource = (ModifiableTraversableSource)source;
modifiabletraversablesource.createCollection(collectionname);
} else
throw new ProcessingException("Source isn't writeable");
} catch (SourceException se) {