static String swapRealmTag(String realm,String value){
  return value.replace(REALM_NAME_TAG,realm);
}

static String swapRealmTag ( String realm , String value ) { return value . replace ( REALM_NAME_TAG , realm ) ; }
replaces the realm name tag with the real realm name
