*/
private void loadCustomComponentsFromPackage(IPackageFragmentRoot[] roots, String contextTypeId, int type, List<Template> templateList, ComponentPackage cp, String prefix){
List<String> componentNameList = getCustomComponentsNameList(roots, cp);
//Build templates from name list
for(String componentName : componentNameList){
TapestryCoreComponents component = new TapestryCoreComponents();
component.setName(componentName);
if (prefix == null || prefix.equals("t"))
component.setElementLabel("t:" + cp.getPrefix() + "." + componentName.toLowerCase());
else
component.setElementLabel(cp.getPrefix() + ":" + componentName.toLowerCase());
templateList.add(new Template(cp.getPrefix() + ":" + component.getName(), buildDescription(component,
cp.getPath()), contextTypeId, buildInsertCode(component, type), true));
}
}