private String getRemoveServiceRelativePath(Class<?> clazz) {
CtClass ctClass = GwtClassPool.getCtClass((clazz));
Object[] annotations = ctClass.getAvailableAnnotations();
for (Object o : annotations) {
if (Proxy.isProxyClass(o.getClass())) {
AnnotationImpl annotation = (AnnotationImpl) Proxy.getInvocationHandler(o);
if (annotation.getTypeName().equals(RemoteServiceRelativePath.class.getName())) {
return ((StringMemberValue) annotation.getAnnotation().getMemberValue("value")).getValue();
}
}
}
throw new GwtTestRpcException("Cannot find the '@"
+ RemoteServiceRelativePath.class.getSimpleName()