final String name = document.field(P_SOURCEID_NAME, OType.STRING);
final String internalId = document.field(P_SOURCEID_ID, OType.STRING);
final String factoryName = document.field(P_FACTORYNAME, OType.STRING);
final Map<String, Object> config = document.field(P_CONFIGURATION, OType.EMBEDDEDMAP);
ComponentSourceConfig entity = new ComponentSourceConfig(new ComponentSourceId(name, internalId), factoryName,
config);
return entity;
}