namingPattern.setVersion("gbeanref-pattern-version");
gbeanRef.getPattern().add(namingPattern);
applicationClient.getGbeanRef().add(gbeanRef);
// set the Message Destination
MessageDestination messageDestination = namingFactory.createMessageDestination();
messageDestination.setAdminObjectLink("messagedestination-adminobjectlink");
messageDestination.setAdminObjectModule("messagedestination-adminobjectmodule");
messageDestination.setMessageDestinationName("messagedestination-name");
namingPattern = namingFactory.createPattern();
namingPattern.setArtifactId("messagedestination-pattern-artifactid");
namingPattern.setGroupId("messagedestination-pattern-groupid");
namingPattern.setModule("messagedestination-pattern-module");
namingPattern.setName("messagedestination-pattern-name");
namingPattern.setVersion("messagedestination-pattern-version");
messageDestination.setPattern(namingPattern);
applicationClient.getMessageDestination().add(messageDestination);
// set the Resource
Resource resource = applicationClientFactory.createResource();
resource.setInternalRar("resource-internalrar");