// 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);