Instead of hard-coding the ports, can you get it from the application properties file?