A simple self diagnosis library for java applications