lock for java bug using coffee diretly