The java way