static synchronized String format(String key,Object[] arguments){
  if (messageFormat == null) {
    messageFormat=new MessageFormat(textResources.getString(key));
  }
 else {
    messageFormat.applyPattern(textResources.getString(key));
  }
  return (messageFormat.format(arguments));
}

static synchronized String format ( String key , Object [ ] arguments ) { if ( messageFormat == null ) { messageFormat = new MessageFormat ( textResources . getString ( key ) ) ; } else { messageFormat . applyPattern ( textResources . getString ( key ) ) ; } return ( messageFormat . format ( arguments ) ) ; }
fetch a string by key lookup and format in the arguments .
