Was not checking presence of the optional protocol method. If method was not implemented this would crash and throw an exception.