Some new java helpers