} else if (annotation.type().getCanonicalName().equals("javax.jms.Queue") ||
annotation.type().getCanonicalName().equals("javax.jms.Topic")) {
// message-destination-ref
MessageDestinationRef resource = new MessageDestinationRef();
resource.setName(annotation.name());
resource.setType(annotation.type().getCanonicalName());
resource.setUsage(annotation.mappedName());
resource.setDescription(annotation.description());
context.getNamingResources().addMessageDestinationRef(resource);
} else if (annotation.type().getCanonicalName()
.equals("javax.resource.cci.InteractionSpec") ||
annotation.type().getCanonicalName()
.equals("javax.transaction.UserTransaction") ||
true) {
// resource-env-ref
ContextResourceEnvRef resource = new ContextResourceEnvRef();
resource.setName(annotation.name());
resource.setType(annotation.type().getCanonicalName());
resource.setProperty("mappedName", annotation.mappedName());
resource.setDescription(annotation.description());
context.getNamingResources().addResourceEnvRef(resource);
}