if (line.indexOf("@Name") != -1 || line.indexOf("@" + Name.class.getName()) != -1)
{
//possibly a Seam component
log.debug("Groovy file possibly a Seam component: " + name);
Class<Object> groovyClass = (Class<Object>) classLoader.loadClass(classname);
Install install = groovyClass.getAnnotation(Install.class);
boolean installable = ( install == null || install.value() )
&& ( groovyClass.isAnnotationPresent(Name.class)
|| classLoader.getResources(filename).hasMoreElements() );
if (installable)
{
log.debug("found groovy component class: " + name);