The implementation of isImplementsPlugin is cumbersome consider using either isAssignableFrom or isInstance methods of class Class  http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html