Java: Some helper classes i needed for several projects