PassThroughCode refactoring and create PassThrough Core and API for enhace reusability

Code formatting issues. Please refer the segment >> String servicePrefixIndex="://";