class Capabilities {

    public static boolean hasCapability(Object item, String capability) {
        return item != null && capability != null && Capabilities.hasCapability(item.getClass(), capability);
    }

}