{
List<Class<? extends Facet>> result = new ArrayList<Class<? extends Facet>>();
if (Annotations.isAnnotationPresent(type, RequiresFacet.class))
{
RequiresFacet requires = Annotations.getAnnotation(type, RequiresFacet.class);
if (requires.value() != null)
{
result.addAll(Arrays.asList(requires.value()));
}
}
return result;
}