// Search for proper method
for (final Method method : methods) {
// Init methods will be marked by the corresponding annotation.
final Capabilities caps = method.getAnnotation(Capabilities.class);
if (caps != null) {
Object result = null;
try {
result = method.invoke(plugin, new Object[0]);