I think you can simplify all of this, by just receiving a "casServerLoginUrl" from the property file. Much like the Java CAS client itself.