private static String toAnnotation(Attribute attribute){
  String accessor=toJMapAccessor(attribute);
  String jMap=toJMap(attribute);
  StringBuilder result=new StringBuilder();
  if (!isEmpty(accessor))   result.append(accessor);
  if (!isEmpty(jMap))   result.append(jMap);
  return result.toString();
}

private static String toAnnotation ( Attribute attribute ) { String accessor = toJMapAccessor ( attribute ) ; String jMap = toJMap ( attribute ) ; StringBuilder result = new StringBuilder ( ) ; if ( ! isEmpty ( accessor ) ) result . append ( accessor ) ; if ( ! isEmpty ( jMap ) ) result . append ( jMap ) ; return result . toString ( ) ; }
this method transforms an attribute in an annotation in string format .
