[pull #35][refactor] Added generics to getComponent in Entity.java