private String[] getModulesOnATarget(SunTarget aTarget, ModuleType requiredType, String attribute,
Object status) throws IOException {
Set modules = null;
// Get all deployed items in the given target
DeployedItemHelper helper = new DeployedItemHelper(getRootProxy());
if( ! aTarget.getTargetType().equals(TargetType.CLUSTER)) {
modules = helper.queryStandaloneServerDeployedItemObjectNames(aTarget.getName());
} else {
modules = helper.queryClusterDeployedItemObjectNames(aTarget.getName());
}
// if required to get only enabled / disabled modules, filter the received modules Set
if(attribute != null) {
modules = helper.filterByAttributeValue(modules, attribute, status);
}
// Now from this filtered set, get the modules of the required type
Vector modulesMatchingType = new Vector();
final String xtype = getXType(requiredType);