code: private String getType(final WComponent component) {
  		for (Class<?> clazz = component.getClass(); clazz != null && WComponent.class.
  				isAssignableFrom(clazz); clazz = clazz.getSuperclass()) {
  			if ("com.github.bordertech.wcomponents".equals(clazz.getPackage().getName())) {
  				return clazz.getName();
  			}
  		}
  
  		return null;
  	}
docs: Tries to return the type of component.
  
  @param component the component to determine the type of.
  @return the component type, or null if the given component is not a core component.