//TODO what if the module being deployed is a RAR and has gf-resources.xml ?
//TODO can the RAR define its own resources ? eg: connector-resource, pool, a-o-r ?
public static ConnectorConstants.TriState
isEmbeddedRarResource(com.sun.enterprise.config.serverbeans.Resource configBeanResource,
Collection<com.sun.enterprise.config.serverbeans.Resource> configBeanResources) {
TriState result = TriState.FALSE;
if(configBeanResource instanceof ConnectorResource){
String poolName = ((ConnectorResource)configBeanResource).getPoolName();
ConnectorConnectionPool pool = getPool(configBeanResources, poolName);
if(pool != null){
if(pool.getResourceAdapterName().contains(ConnectorConstants.EMBEDDEDRAR_NAME_DELIMITER)){