ComponentPresentationFactory factory = new ComponentPresentationFactory(publicationId);
for (String tcmUri : items) {
com.tridion.dcp.ComponentPresentation oldCP = factory.getComponentPresentationWithHighestPriority(tcmUri);
if (oldCP != null) {
ComponentPresentation componentPresentation = MapperFactory.mapComponentPresentation(oldCP);
result.add(componentPresentation);
}
}
return result;