/** * This <code>resolve</code> method is used to find a label based on the name and path of the * provided parameter. If it can not be found then this will return null. * * @param parameter this is the parameter used for resolution * @return the label that has been resolved, or null */ private Label resolve(Parameter parameter) throws Exception { if (parameter.isAttribute()) { return resolve(parameter, attributes); } else if (parameter.isText()) { return resolve(parameter, texts); } return resolve(parameter, elements); }