made sun-java state more generic
added simplistic hostfile maintenance state