public boolean isValidEntity(String name){
  return name.matches("^[A-Za-z0-9:]+$");
}

public boolean isValidEntity ( String name ) { return name . matches ( "^[A-Za-z0-9:]+$" ) ; }
check if the entity id is a valid entity id .
