if (source instanceof RestrictableSource)
((RestrictableSource)source).setSourceCredential(new SourceCredential(principal, password));
if (source instanceof InspectableSource) {
InspectableSource inspectablesource = (InspectableSource)source;
SourceProperty property = new SourceProperty(namespace, name, value);
inspectablesource.setSourceProperty(property);
} else
throw new ProcessingException("Source isn't inspectable");
} catch (SourceException se) {
if (getLogger().isDebugEnabled())
getLogger().debug("Exception occurs while modifying the source", se);