if (!rootIDExists) {
RE internalRE =
new RE(new URL(internalURL).getHost(), RE.MATCH_CASEINDEPENDENT);
boolean samePorts =
(((new URL(internalURL)).getPort()) == ((new URL(url)).getPort()));
if ((internalRE.match(url)) && (samePorts)) {
logger.debug("This is an internal URL");
statusCode = HttpServletResponse.SC_OK;
} else {
logger.debug("No pattern has been defined at any repository for this URL");
//Set Status Code equal to "-1", so we do know there was no pattern found