public static String addDomainIfMissing ( final String aUrl , final String aDomain ) { if ( aUrl != null && ! aUrl . isEmpty ( ) && aUrl . startsWith ( "/" ) ) { return aDomain + aUrl ; } return aUrl ; }
adds the domain if missing .