private Localized findEntity(final String key, final JpaRepository repository, final Class<?> repositoryClass) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
Method[] methods = repositoryClass.getMethods();
Localized entity = null;
for (Method method : methods) {
if (method.getName().equals(this._methodName) && method.getParameterTypes().length == 1) {
try {
if (_parameterType.equals("int")) {
entity = (Localized) method.invoke(repository, Integer.valueOf(key));