/**
* @see BufferManager#removeBuffer(IBuffer)
*/
public static void removeBuffer(IBuffer buffer) {
if (buffer != null) {
BufferManager manager = BufferManager.getDefaultBufferManager();
try {
Method removeMethod = BufferManager.class.getDeclaredMethod(
"removeBuffer", new Class[]{IBuffer.class});
removeMethod.setAccessible(true);
removeMethod.invoke(manager, new Object[]{buffer});