protected PositionSource initUser(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
if (getUserPortfolioMaster() == null || getUserPositionMaster() == null) {
return null;
}
final PositionSource source = new MasterPositionSource(getUserPortfolioMaster(), getUserPositionMaster());
if (getUserClassifier() != null) {
final ComponentInfo info = new ComponentInfo(PositionSource.class, getUserClassifier());
info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePositionSource.class);
repo.registerComponent(info, source);