Added comment about 127.0.0.1 host
fixed s_code path
missing comma
moved getExternalResourceUrl into utility class