* @param isPrivilegedNamespace if true, namespace is privileged
* @return the created {@link StringSource}
*/
public final <D extends Definition> StringSource<D> putSource(DefDescriptor<D> descriptor, String contents,
boolean overwrite, boolean isPrivilegedNamespace) {
Format format = DescriptorInfo.get(descriptor.getDefType().getPrimaryInterface()).getFormat();
StringSource<D> source = new StringSource<>(descriptor, contents, descriptor.getQualifiedName(), format);
return putSource(descriptor, source, overwrite, isPrivilegedNamespace);
}