import java.io.ByteArrayOutputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
public class Main {
public void buisinessMethod(){
synchronized (lock){
//...
}
}
}
}
}
}
aW1wb3J0IGphdmEuaW8uQnl0ZUFycmF5T3V0cHV0U3RyZWFtOwppbXBvcnQgamF2YS5pby5PYmplY3RPdXRwdXRTdHJlYW07CmltcG9ydCBqYXZhLmlvLlNlcmlhbGl6YWJsZTsKIApwdWJsaWMgY2xhc3MgTWFpbiB7CiAKICAgIHN0YXRpYyBjbGFzcyBCdXNpbmVzc09iamVjdCBpbXBsZW1lbnRzIFNlcmlhbGl6YWJsZXsKIAogICAgICAgIE9iamVjdCBsb2NrID0gbmV3IE9iamVjdCgpOwogCiAgICAgICAgcHVibGljIHZvaWQgYnVpc2luZXNzTWV0aG9kKCl7CiAgICAgICAgICAgIHN5bmNocm9uaXplZCAobG9jayl7CiAgICAgICAgICAgICAgICAvLy4uLgogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBwcml2YXRlIHZvaWQgd3JpdGVPYmplY3QoamF2YS5pby5PYmplY3RPdXRwdXRTdHJlYW0gb3V0KSB0aHJvd3MgamF2YS5pby5JT0V4Y2VwdGlvbiB7CiAgICAgICAgfQoKICAgIH0KIAogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgdGhyb3dzIEV4Y2VwdGlvbnsKICAgICAgICBuZXcgT2JqZWN0T3V0cHV0U3RyZWFtKG5ldyBCeXRlQXJyYXlPdXRwdXRTdHJlYW0oKSkud3JpdGVPYmplY3QobmV3IEJ1c2luZXNzT2JqZWN0KCkpOwogICAgfQp9