Reference link:https://www.ibm.com/developerworks/cn/java/j-lo-mina2/