if (deploymentUnit.getName().lastIndexOf('.') == -1) {
deployment = deploymentUnit.getName();
} else {
deployment = deploymentUnit.getName().substring(0, deploymentUnit.getName().lastIndexOf('.'));
}
<BUG>String suffix = ConnectorServices.getNextValidSuffix(connectorXmlDescriptor.getDeploymentName());
ResourceAdapterXmlDeploymentService service = new ResourceAdapterXmlDeploymentService(connectorXmlDescriptor,
raxml, module, deployment, suffix);

ServiceName serviceName = ConnectorServices.registerResourceAdapterXmlServiceNameWithSuffix(
connectorXmlDescriptor.getDeploymentName(), suffix);</BUG>
serviceTarget

if (deploymentUnit.getName().lastIndexOf('.') == -1) {
deployment = deploymentUnit.getName();
} else {
deployment = deploymentUnit.getName().substring(0, deploymentUnit.getName().lastIndexOf('.'));
}
String raName = connectorXmlDescriptor.getDeploymentName();
ServiceName serviceName = ConnectorServices.registerDeployment(raName);
ResourceAdapterXmlDeploymentService service = new ResourceAdapterXmlDeploymentService(connectorXmlDescriptor,
raxml, module, deployment, serviceName);
serviceTarget
