private Annotation[] getRestArgAnnotation(Annotation[] annotations) {
    	
    	Annotation[] annot = new Annotation[2];
    	if(annotations!=null && annotations.length>0) 
    	{
	    	for (Annotation annotation : annotations) 
	    	{
				if(annotation instanceof FormParam || annotation instanceof QueryParam
		                || annotation instanceof RequestParam || annotation instanceof HeaderParam
		                || annotation instanceof PathParam)
					annot[0] = annotation;
				if(annotation instanceof DefaultValue)
					annot[1] = annotation;
			}
    	}
		return annot;
	}