common resuable java function components