Changed type.getInterfaces() to Reflections.getAllInterfaces(type)