This is java code sample for blocking Q