* @param componentName the name of the target to resolve
*/
public static EntryPoint createEntryPointWithStringRef(String name, Class interfaz, String refName, String componentName) {
EntryPoint ep = createEPSystemBinding(name, interfaz, refName, null);
ConfiguredReference cRef = systemFactory.createConfiguredReference();
Reference ref = systemFactory.createReference();
cRef.setPort(ref);
Service service = systemFactory.createService();
service.setName(componentName);
ConfiguredService cService = systemFactory.createConfiguredService();
cService.setPort(service);
cRef.getTargetConfiguredServices().add(cService);
cRef.initialize(assemblyContext);
cService.initialize(assemblyContext);
JavaServiceContract contract = systemFactory.createJavaServiceContract();
contract.setInterface(interfaz);
ref.setServiceContract(contract);
ep.setConfiguredReference(cRef);
ep.initialize(assemblyContext);
return ep;
}