public class OSGiXServiceParseProcessor implements DeploymentUnitProcessor {
public static final String XSERVICE_PROPERTIES_NAME = "META-INF/jbosgi-xservice.properties";
@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
<BUG>if (depUnit.hasAttachment(OSGiConstants.OSGI_METADATA_KEY))

return;</BUG>
VirtualFile virtualFile = depUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot();
VirtualFile xserviceFile = virtualFile.getChild(XSERVICE_PROPERTIES_NAME);

public class OSGiXServiceParseProcessor implements DeploymentUnitProcessor {
public static final String XSERVICE_PROPERTIES_NAME = "META-INF/jbosgi-xservice.properties";
@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
OSGiMetaData metadata = depUnit.getAttachment(OSGiConstants.OSGI_METADATA_KEY);
Deployment dep = BundleLifecycleIntegration.getDeployment(depUnit.getName());
if (metadata != null || dep != null)
return;
VirtualFile virtualFile = depUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot();
VirtualFile xserviceFile = virtualFile.getChild(XSERVICE_PROPERTIES_NAME);
