* method.
*/
public static Collection<CommandModel.ParamModel> getParamMetaData(
String commandName, Collection<String> commandParamsToSkip,
ServiceLocator habitat, Logger logger) {
CommandModel cm = habitat.<CommandRunner>getService(CommandRunner.class).getModel(commandName, logger);
Collection<String> parameterNames = cm.getParametersNames();
ArrayList<CommandModel.ParamModel> metaData = new ArrayList<CommandModel.ParamModel>();
CommandModel.ParamModel paramModel;
for (String name : parameterNames) {
paramModel = cm.getModelFor(name);
String parameterName = (paramModel.getParam().primary()) ? "id" : paramModel.getName();
boolean skipParameter = false;
try {
skipParameter = commandParamsToSkip.contains(parameterName);