if (userSource != null) {
String scheme = repo.getInfo(getUserPortfolioMaster()).getAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME);
map.put(scheme, userSource);
scheme = repo.getInfo(getUserPositionMaster()).getAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME);
map.put(scheme, userSource);
source = new DelegatingPositionSource(source, map);
}
// register
final ComponentInfo info = new ComponentInfo(PositionSource.class, getClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 2);