public void buildNaming(XmlObject specDD, XmlObject plan, Configuration localConfiguration, Configuration remoteConfiguration, Module module, Map componentContext) throws DeploymentException {
XmlObject[] EntityManagerFactoryRefsUntyped = getEntityManagerFactoryRefs(plan);
for (int i = 0; i < EntityManagerFactoryRefsUntyped.length; i++) {
XmlObject EntityManagerFactoryRefUntyped = EntityManagerFactoryRefsUntyped[i];
GerEntityManagerFactoryRefType EntityManagerFactoryRef = (GerEntityManagerFactoryRefType) EntityManagerFactoryRefUntyped.copy().changeType(GerEntityManagerFactoryRefType.type);
if (EntityManagerFactoryRef == null) {
throw new DeploymentException("Could not read EntityManagerFactoryRef " + EntityManagerFactoryRefUntyped + " as the correct xml type");
}
String EntityManagerFactoryRefName = EntityManagerFactoryRef.getEntityManagerFactoryRefName();